# # # # 练习1：打印1——100之间的奇数
# # # # count=1
# # # # while count <= 100:
# # # #     if count % 2 == 1:
# # # #         print(count)
# # # #     count=count+1
# # #
# # # 练习2:连续打印1————100的和
# # count=1
# # sup=count
# # while count < 100:
# #     t = count + 1
# #     sup = sup + t
# #     print(sup)
# #     count = count + 1
#
# # 练习3：打印1————100的和
# # count=1
# # sup=count
# # while count < 100:
# #     t = count + 1
# #     sup = sup + t
# #     count = count + 1
# # print(sup)
#
# 练习4：打印1-2+3-4~100
count = 1
sum = 0
dif = 0
while count <= 100:
    if count % 2 == 1:
        sum = sum + count
    else:
        t = count*-1
        dif = dif + t
    count = count + 1
print(sum)
print(dif)
print(sum+dif)
